<input type="hidden" id="member_id" value="{$member->id}" />
<input type="hidden" id="member_money" value="{if $member->id>0}{$member->money}{else}0{/if}" />
</body>
</html>
{if $is_pjax==0}
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
var title , desc , link, imgUrl ,app ,act;
	title = "商富商城";
	desc = "商富商城进口生活馆为欧洲匈牙利JP2003 KFT公司旗下的一个以跨境O2O直购体验中心，线上线下运作模式的进口商品连锁专卖品牌。";
	link = window.location.href;
	if(link.indexOf('=')>0){
		link = link+"&reseller="+"{$member->id}";
	}else{
		link = link+"?reseller="+"{$member->id}";
	}

	imgUrl = "http://yanglanzi.b0.upaiyun.com/uploadfiles/default_pic/2016/08/20/1682010221710475.png";
	app="{$app}";
	act="{$act}";

	if(app == "goods" && act == "detail"){
		title = "{$goods_name}";
		desc = "{$goods_desc}";
		imgUrl = "{$goods_default_pic}";

	}

wx.config({
	debug: false,
	appId: "{$weixin_sign_package.appId}",
	timestamp: "{$weixin_sign_package.timestamp}",
	nonceStr: "{$weixin_sign_package.nonceStr}",
	signature: "{$weixin_sign_package.signature}",
	jsApiList: [
		//所有要调用的 API 都要加到这个列表中
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ'
	]
});
wx.ready(function(){
	wx.onMenuShareAppMessage({
		title: title,
		desc: desc,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});
	wx.onMenuShareTimeline({
		title: title,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});
	wx.onMenuShareQQ({
		title: title,
		desc: desc,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});  
});
</script>
{/if}
